import threading
import time

def test():
    for i in range(5):
        print(threading.current_thread().name+' test',i)
        time.sleep(2)

x=threading.Thread(target=test,name='TestThread')
x.start()

for i in range(5):
    print(threading.current_thread().name+' main',i)
    time.sleep(2)
